export interface createRequestData {
  company_name: string
  contact_number: string
  username: string
  founded_date?: string
  city?: string
  industry?: string
  uid: number
  company_type: number | string
  check_type: number | string | undefined
  invoicing_type: number | string
  star_rating: number
  card_number?: string | undefined | null
  zfb_code?: string | undefined | null
  wx_code?: string | undefined | null
  card_name?: string | undefined | null
  card_bank?: string | undefined | null
  wx_name?: string | undefined | null
  zfb_name?: string | undefined | null
}
export interface updateRequestData {
  id: string
  company_name: string
  contact_number: string
  username: string
  founded_date?: string
  city?: string
  industry?: string
  uid: number
  company_type: number | string
  check_type: number | string
  invoicing_type: number | string
  star_rating: number
  card_number?: string | undefined | null
  zfb_code?: string | undefined | null
  wx_code?: string | undefined | null
  card_name?: string | undefined | null
  card_bank?: string | undefined | null
  wx_name?: string | undefined | null
  zfb_name?: string | undefined | null
}
export interface GetDetailRequestData {
  id: string
}
export interface deleteDetailRequestData {
  id: string
}

export interface GetTableData {
  /** 当前页码 */
  pageNum: number
  /** 查询条数 */
  pageSize: number

  company_name: string
  uid: number | undefined
  company_type: string | number | undefined
  trade_date: number | undefined
  star_rating: number | undefined
  trade_summary: number | undefined
  orderBy?: string
  orderType?: string
}
export interface getCheckRequestData {
  company_name: string
}
export interface companyListRequestData {
  company_name?: string
}

export interface GetCompanyListsData {
  id: number
  company_name: string
  uid: number
  create_time: string
  contact_number: string
  username: string
}

// 返回值
export type GetTableResponseData = ApiResponseData<{
  data: GetTableData[]
  total: number
}>
export type GetDetailResponseData = ApiResponseData<{
  create_time: string
  id: string
  zfb_codes: string
  wx_codes: string
}>
export type GetListsResponseData = ApiResponseData<{
  list: GetCompanyListsData[]
}>
